package com.ys.entity.eKnowAi;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_eknow].[dbo].EKnow_KnowledgeType", catalog="Id")
public class EKnowKnowledgeType extends BaseEntity<EKnowKnowledgeType> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TypeName", nameJava="typeName", typeDataBase="varchar")
	private String typeName;
	@YsField(nameDataBase="BaseId", nameJava="baseId", typeDataBase="bigint")
	private Long baseId;
	@YsField(nameDataBase="UpdateUserId", nameJava="updateUserId", typeDataBase="varchar")
	private String updateUserId;
	@YsField(nameDataBase="Sort", nameJava="sort", typeDataBase="int")
	private Integer sort;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public EKnowKnowledgeType setId(Long id) {
		this.id = id;
		return this;
	}
	public String getTypeName() {
		return typeName;
	}
	public EKnowKnowledgeType setTypeName(String typeName) {
		this.typeName = typeName;
		return this;
	}
	public Long getBaseId() {
		return baseId;
	}
	public EKnowKnowledgeType setBaseId(Long baseId) {
		this.baseId = baseId;
		return this;
	}
	public String getUpdateUserId() {
		return updateUserId;
	}
	public EKnowKnowledgeType setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
		return this;
	}
	public Integer getSort() {
		return sort;
	}
	public EKnowKnowledgeType setSort(Integer sort) {
		this.sort = sort;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public EKnowKnowledgeType setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public EKnowKnowledgeType setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public EKnowKnowledgeType setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static EKnowKnowledgeType eKnowKnowledgeType(
		String typeName,
		Long baseId,
		String updateUserId,
		Integer sort,
		Integer status
			) {
		EKnowKnowledgeType entity = new EKnowKnowledgeType();
		entity.setTypeName(typeName);
		entity.setBaseId(baseId);
		entity.setUpdateUserId(updateUserId);
		entity.setSort(sort);
		entity.setStatus(status);
		return entity;
	}
}